//
// Created by liushuai on 2021/1/30.
//

#ifndef LEETCODE_PATHSUM_H
#define LEETCODE_PATHSUM_H
#include <vector>
#include "TreeNode.h"
using std::vector;
void pathSum(TreeNode *root, vector<int> &cache,vector<vector<int>>&paths, int value);
vector<vector<int> > pathSum(TreeNode* root, int sum);
#endif //LEETCODE_PATHSUM_H
